CxFmsClosePeriodCtrl Example
Use the CxFmsClosePeriodCtrl object to display and manipulate an ActiveX CygNet FMS Close Period Control in a CygNet Studio screen environment.
|
| CygNet FMS Close Period Control Example |
To see an example FMS Close Period control implemented in a pre-designed screen, open the FMS Close Period Ctrl.csf file found in the APPS SCREXAMP or in the CygNet\Clients\CStudio\Screens\Examples folder.
CygNet Studio Screen Script: FMS Close Period Ctrl.csf
Copy
CxFmsClosePeriodCtrl Example
Sub btnApply_EventClick()
Dim This : Set This = btnApply
FmsClosePeriod.PITDateTime = editPIT.Text
FmsClosePeriod.UsePIT = checkUsePIT.Check
FmsClosePeriod.Apply True
End Sub
Sub btnCancel_EventClick()
Dim This : Set This = btnCancel
FmsClosePeriod.Cancel
End Sub
Sub checkUsePIT_EventChange()
Dim This : Set This = checkUsePIT
FmsClosePeriod.UsePIT = this.Check
editPIT.Enable this.Check
End Sub
Sub TheView_EventInitialize()
Dim This : Set This = TheView
checkUsePIT.Check = FmsClosePeriod.UsePIT
editPIT.Text = FmsClosePeriod.PITDateTime
editPIT.Enable = FmsClosePeriod.UsePIT
End Sub


